//
//  myDataAccess.h
//  giuseppe
//
//  Created by Apple on 15/8/17.
//  Copyright (c) 2015年 GiantUmbrella. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef void (^transferValue) (id obj,NSError* error);

@interface myDataAccess : NSObject


+(myDataAccess *) shardWebUtil;

+ (BOOL)isMobileNumber:(NSString *)mobileNumber;

#pragma mark - login
//登陆
- (void) loginUsingWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//注册
- (void) registerUsingWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//忘记密码
- (void) telPhoneFindPasswordUsingWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//获取学校列表
- (void) gettingSchoolListsUsingWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//获取验证码
- (void) gettingCheckNumberUsingWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//消息
- (void) gettingMessageWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;



#pragma mark - homePage
//首页
- (void) gettingHomePageInfoWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//商品详情
- (void) goodsDetailsWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//商品选择尺码
- (void) selectSizeWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//收货地址管理
- (void) addressManagerWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//订单支付
- (void) orderPaymentWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//收藏商品
- (void) addtoFavoriteListsWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;

#pragma mark - userInfo
//个人中心首页
- (void) userCenterHomeWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//个人中心
- (void) userInfoManagementWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//切换账户
- (void) changeUserWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//收藏夹
- (void) favoriteListsManagementWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//订单信息
- (void) orderListsManagementWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//确认收货
- (void) orderConfirmWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//商品评价
- (void) orderCommentsWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;


#pragma mark - shoppingCart

//添加购物车
- (void) addtoShoppingCartWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;
//购物车商品查看
- (void) shoppingCartListsWithURLString:(NSString *) urlString  andParas:(id) params andTransferGottenData:(transferValue) transfer;


@end
